package tgc.edu.examxy.service;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import tgc.edu.examxy.custom.CommonService;
import tgc.edu.examxy.entity.EvaluationRule;
import tgc.edu.examxy.entity.Student;
import tgc.edu.examxy.entity.TeachingProgramme;
import tgc.edu.examxy.repository.EvaluationRuleRepository;
import tgc.edu.examxy.web.form.AndroidEvationRuleForm;

@Service
public class EvaluationRuleService extends CommonService<EvaluationRule, UUID>{
	@Autowired
	private EvaluationRuleRepository erDAO;
	

	public EvaluationRule findByStudentIdAndTeachingProgrammeId(UUID id, UUID id2) {
		return erDAO.findByStudentIdAndTeachingProgrammeId(id,id2);
	}


	public List<EvaluationRule> findByStudentIdAndIsevaluate(UUID id, int i) {
		return erDAO.findByStudentIdAndIsevaluate(id,i);
	}


	public List<EvaluationRule> findByStudentId(UUID id, Sort sort) {
		return erDAO.findByStudentId(id,sort);
	}


	
	
}
